eba<div id="sidebar">
<?php if (is_home()) { ?>

<div id="sidebar-tab">
	<div id="tab-title">
		<h3><span class="selected">随机文章</span><span>最新评论</span><span>近期热评</span></h3>
	</div>
	<div id="tab-content">
		<ul><?php wkc_random_posts('number=10&length=40'); ?></ul>
		<ul class="hide"><?php wkc_recent_comments('number=10&length=25'); ?></ul>
		<ul class="hide"><?php wkc_most_commented_posts('number=10&days=300'); ?></ul>
	</div></div>

	<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
	<?php endif; ?>

<?php } elseif( is_single() ) { ?>
<div id="sidebar-tab">
	<div id="tab-title">
		<h3><span class="selected">随机文章</span><span>最新评论</span><span>近期热评</span></h3>
	</div>
	<div id="tab-content">
		<ul><?php wkc_random_posts('number=10&length=40'); ?></ul>
		<ul class="hide"><?php wkc_recent_comments('number=10&length=25'); ?></ul>
		<ul class="hide"><?php wkc_most_commented_posts('number=10&days=300'); ?></ul>
	</div></div>
	<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>
	<?php endif; ?>
<?php } else { ?>
	<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(3) ) : ?>
	<?php endif; ?>
<?php } ?>
</div>